/**
 * Copyright &copy; 2012-2015 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.soccer.cms.modules.cms.utils;

import java.util.List;

import com.google.common.collect.Lists;
import com.soccer.cms.common.utils.SpringContextHolder;

import com.soccer.cms.modules.cms.entity.Equipment;
import com.soccer.cms.modules.cms.dao.EquipmentDao;

/**
 * 装备Utils
 * @author zouqh
 * @version 2015-05-26
 */
public class EquipmentUtils {

	private static EquipmentDao equipmentDao = SpringContextHolder.getBean(EquipmentDao.class);
	
	public static Equipment getEquipment(String id) {
		return equipmentDao.get(id);
	}
	
	public static List<Equipment> getEquipmentList() {
		List<Equipment> equipments = null;
		Equipment equipment = new Equipment();
		equipments = equipmentDao.findList(equipment);
		if(equipments == null){
			equipments = Lists.newArrayList();
		}
		return equipments;
	}
	
	
}